$data = [
"name" => $image_name,
"title" => $image_title
]
Storage::disk('public')->put('images.json', json_encode($data));
public function getOrgById(Request $request){
// do something here...
return response()->json(array('foo' => 'bar'));
}
$data2 = [];
foreach ($labels as $label)
{
$data2[] = [
'label' => $label,
'value' => $budget->sum($label)
];
}